<?php require_once('../../core/import.php');?>
<?php User::Permission('SLIDE_UPDATE'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/kindeditor/import.kindeditor.js"></script>
    <script type="text/javascript" src="scripts/slide.edit.js"></script>
</head>

<body>
	<?php
    #赋值检测
    if(!is_numeric($ID=Functions::UrlArgs('id'))) exit('信息ID不正确');
    
    #获取数据
    $Data=DB::GetRowByID('dm_slide',$ID);
    {
	?>
    <form id="Form1" name="Form1" method="post" action="slide.edit.action.php" enctype="multipart/form-data" class="Form">
        <fieldset>
            <legend>幻灯片添加</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="130" height="25" align="left">标题：
                </td>
                <td width="909" colspan="2">
                    <input type="text" id="Title" name="Title" value="<?php echo $Data['Title']; ?>" class="Textbox" /></td>
            </tr>
            <tr>
                <td width="130" height="25" align="left">图片：
                </td>
                <td width="909" colspan="2"><input type="File" id="PicturePath" name="PicturePath" class="Textbox" />
                  <?php if($Data['PicturePath']){?>
                  <a href="<?php echo Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$Data['PicturePath']; ?>" target="_blank">点击查看</a>
                  <?php }?>
                </td>
            </tr>
             <tr>
                <td width="130" height="25" align="left">连接：
                </td>
                <td width="909" colspan="2">
                    <input type="text" id="URL" name="URL" value="<?php echo $Data['URL']; ?>" class="Textbox" /></td>
            </tr>
            <tr>
            	<td height="25" align="left" valign="top">备注：</td>
            	<td colspan="2"><textarea id="Remark" name="Remark" style="width:100%; height:500px;"><?php echo $Data['Remark']; ?></textarea></td>
            </tr>
            </table>
        </fieldset>
	  <input type="hidden" name="ID" value="<?php echo $ID ?>" />
        <input id="ActionButton" name="ActionButton" type="submit" value="确定" class="button" /> <input id="ResetButton" name="ResetButton" type="reset" value="重置" class="button" />
    </form>
     <?php	
    }
    $Data=NULL;
	?>
</body>
</html>